#-*- encoding:utf8 -*-

from django import http
from django.shortcuts import render
from django.contrib.auth import logout
from django.contrib.auth.decorators import login_required

@login_required(login_url=u'/accounts/login')
def home(request):
    return render(request,u'spa.html',{u'groups':request.user.groups.all()})